package com.lyh;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.Banner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.scheduling.annotation.EnableAsync;

@SpringBootApplication
@MapperScan("com.lyh.mapper")
@EnableAsync //开启异步任务
@EnableCaching //开启缓存
public class AdoAccessApplication {

    public static void main(String[] args) {

        SpringApplication app = new SpringApplication(AdoAccessApplication.class);
        app.setBannerMode(Banner.Mode.CONSOLE);
        app.run(args);

//        SpringApplication.run(AdoAccessApplication.class, args);
    }

}
